﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Dralee.IdentityServer.Host.Models
{
    public class IdentityServerCfg
    {
        public string ApiName { get; set; }
        public string ApiSecret { get; set; }
        public string ApiDescription { get; set; }
        public string ApiDisplayName { get; set; }
        public List<ISClient> Clients { get; set; }
        public IList<string> AllowedScopes { get; set; }
    }

    public class ISClient
    {
        public string ClientId { get; set; }
        public string ClientName { get; set; }
        public bool RequireConsent { get; set; }
        public IList<string> AllowedGrantTypes { get; set; }
        public IList<ClientSecrect> ClientSecrets { get; set; }
        public IList<string> AllowedScopes { get; set; }

        public IList<string> RedirectUris { get; set; }
        public IList<string> PostLogoutRedirectUris { get; set; }
        public bool AllowOfflineAccess { get; set; }
    }

    public class ClientSecrect
    {
        public string Value { get; set; }
    }
}
